<?php
    $arrQuestion = $this->question;
?>
<div class="content_title"><span><strong>Tư vấn chứng khoán</strong></span></div>
<div class="cleardiv"></div><div class="cleardiv"></div>
<?php
if ($this->errorFlag) {
    ?>
<div style="background-color: gray">
    <div class="cleardiv"></div><div class="cleardiv"></div>
        <?php if ($this->errorMaCK): ?><span style="padding-left: 10px"><?=$this->errorMaCK?></span><br/>  <?php endif; ?>
        <?php if ($this->errorAmountCK): ?><span style="padding-left: 10px"><?=$this->errorAmountCK?></span><br/>  <?php endif; ?>
        <?php if ($this->errorBalance): ?><span style="padding-left: 10px"><?=$this->errorBalance?></span><br/>  <?php endif; ?>
    <div class="cleardiv"></div><div class="cleardiv"></div>
</div>
    <?php
}
?>
<form name="frmSetChungkhoan" action="" method="post">
    <div class="contact_form">
        <label class="contact_form">Mã chứng khoán</label>
        <select name="mack[]" style="width: 150px">
            <option value="">Chọn mã chứng khoán</option>
            <?php
                if(!empty($arrQuestion)) {
                    foreach ($arrQuestion as $val) :
            ?>
            <option value="<?=$val['mackid']?>"><?=$val['mackname']?></option>
            <?php
                    endforeach;
                }
            ?>
        </select>(<font color="red">*</font>)
        <div class="cleardiv"></div>
        <label class="contact_form">Số lượng</label>
        <input type="text" name="amount[]" value="" class="contact_input" /> (<font color="red">*</font>)
        <div class="cleardiv"></div>
        <label class="contact_form">Tổng hiện có</label>
        <input type="text" name="tongck[]" value="" class="contact_input" /> (<font color="red">*</font>)
        <div class="cleardiv"></div>

        <label class="contact_form">Mã chứng khoán</label>
        <select name="mack[]" style="width: 150px">
            <option value="">Chọn mã chứng khoán</option>
            <?php
                if(!empty($arrQuestion)) {
                    foreach ($arrQuestion as $val) :
            ?>
            <option value="<?=$val['mackid']?>"><?=$val['mackname']?></option>
            <?php
                    endforeach;
                }
            ?>
        </select>(<font color="red">*</font>)
        <div class="cleardiv"></div>
        <label class="contact_form">Số lượng</label>
        <input type="text" name="amount[]" value="" class="contact_input" /> (<font color="red">*</font>)
        <div class="cleardiv"></div>
        <label class="contact_form">Tổng hiện có</label>
        <input type="text" name="tongck[]" value="" class="contact_input" /> (<font color="red">*</font>)
        <div class="cleardiv"></div>

        <label class="contact_form">Mã chứng khoán</label>
        <select name="mack[]" style="width: 150px">
            <option value="">Chọn mã chứng khoán</option>
            <?php
                if(!empty($arrQuestion)) {
                    foreach ($arrQuestion as $val) :
            ?>
            <option value="<?=$val['mackid']?>"><?=$val['mackname']?></option>
            <?php
                    endforeach;
                }
            ?>
        </select>(<font color="red">*</font>)
        <div class="cleardiv"></div>
        <label class="contact_form">Số lượng</label>
        <input type="text" name="amount[]" value="" class="contact_input" /> (<font color="red">*</font>)
        <div class="cleardiv"></div>
        <label class="contact_form">Tổng hiện có</label>
        <input type="text" name="tongck[]" value="" class="contact_input" /> (<font color="red">*</font>)
        <div class="cleardiv"></div>
        
        <div align="center">
            <input class="btn" name="" type="submit" value="Lưu" /> &nbsp;&nbsp;
            <input class="btn" name="" type="reset" value="Huỷ" /></div>
    </div>
</form>
<div class="cleardiv"></div>
<div class="cleardiv"></div>
<div class="cleardiv"></div>